﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="MasterTypes.aspx.cs" Inherits="VMS_Web.WebForm1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="panel panel-default">

        <div class="panel-heading">
            <h3 class="panel-title">Master Type Items</h3>
        </div>

        <div class="panel-body">
             <div class="form-horizontal col-md-6">
            <div class="control-group">
                <asp:DataGrid ID="grdmasteritemdetails" CssClass="table table-condensed" runat="server" AutoGenerateColumns="false" AllowPaging="true" PageSize="10">
                    <Columns>
                        <asp:BoundColumn DataField="Master_Item" ReadOnly="True" HeaderText="Item" />
                        <asp:BoundColumn DataField="Item_Desc" ReadOnly="True" HeaderText="Item-Desc " ItemStyle-Wrap="false" />
                        <asp:TemplateColumn HeaderText="Edit">
                            <ItemTemplate>
                                <a class="btn btn-default btn-sm" href='<%#RedirectForEdit(Eval("Master_Item").ToString(),Eval("Item_Desc").ToString())%>'><i class="glyphicon glyphicon-edit"></i></a>
                            </ItemTemplate>
                        </asp:TemplateColumn>

                        <asp:TemplateColumn HeaderText="Delete">
                            <ItemTemplate>
                                <a class="btn btn-default btn-sm" href='<%#RedirectForDelete(Eval("Master_Item").ToString())%>'><i class="glyphicon glyphicon-remove"></i></a>
                            </ItemTemplate>
                        </asp:TemplateColumn>

                        <asp:TemplateColumn HeaderText="View">
                            <ItemTemplate>
                                <a class="btn btn-default btn-sm" href="javascript:window.open('MasterItems.aspx?Type=<%#Eval("Master_Item").ToString()%>','Master Items Window','width=500,height=500')"><i class="glyphicon glyphicon-open"></i></a>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                       
                    </Columns>
                </asp:DataGrid>
            </div>
            </div>
            <div class="form-horizontal col-md-6">
                <div class="form-group">
                    <span class="col-md-5">Master Item</span>
                    <div class="col-md-4">
                        <input type="text" class="form-control" id="txtmastertitemtype" placeholder="Enter Master item type" runat="server" />
                    </div>
                </div>
                <div class="form-group">
                    <span class="col-md-5">Master Item Description</span>
                    <div class="col-md-4">
                        <input type="text" class="form-control" id="txtmastertitemdesc" placeholder="Enter Master description" runat="server" />
                    </div>
                </div>
              <div class="well well-sm">
                <button id="btnAction" value="Add" class="btn btn-default" runat="server" onserverclick="btnAction_ServerClick" />
                <button id="btnCancel" type="reset" class="btn btn-default" runat="server" onserverclick="btnCancel_ServerClick">Cancel</button>
            </div>
            </div>

           

        </div>

    </div>


</asp:Content>
<asp:Content ID="javascript" ContentPlaceHolderID="OnlyForJavaScript" runat="server">
</asp:Content>
